﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Ceremony.API.Model
{
    /// <summary>
    /// 悄悄话
    /// </summary>
    public class Whisper
    {
        public int Id { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        private Whisper() { }

        public Whisper(int userId,string message)
        {
            this.UserId = userId;
            this.Message = message;
            this.CreateTime = DateTime.Now;
        }
    }
}
